﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZY.Toolkit
{
    public enum ApiResultCodeEnum
    {
        未授权 = -1,
        错误 = 0,
        成功 = 1,
    }

    public class ApiResult
    {
        public ApiResult() { }

        public ApiResult(ApiResultCodeEnum code) { this.Code = (int)code; }

        public ApiResult(object result) { this.Result = result; }

        public ApiResult(ApiResultCodeEnum code, object result)
        {
            this.Code = (int)code;
            this.Result = result;
        }

        public int Code { get; set; } = (int)ApiResultCodeEnum.成功;

        public object Result { get; set; }

    }



}
